class Storage {
  get (key: string) {
    return sessionStorage.getItem(key)
  }

  set (key: string, val: string) {
    sessionStorage.setItem(key, val)
  }

  remove (key: string) {
    sessionStorage.removeItem(key)
  }

  clear () {
    sessionStorage.clear()
  }
}

const storage = new Storage()
export default storage
